  /**
   * Generate time : 2016-03-28 11:23:13
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCCProduceproblemHandle 
 * table comment : 生产问题处理记录 
 */
public class ZMCCProduceproblemHandle extends DaoEPBase {

	private String fdKeyId = "";		/* 主键*/
	private String fdRecordId = "";		/* 生产问题记录ID*/
	private String fdIsPenalty = "否";		/* 是否罚款*/
	private String fdPenaltyId = "";		/* 罚款单ID*/
	private BigDecimal fdPenalty = new BigDecimal("0");		/* 罚款金额*/
	private String fdStatus = "1";		/* 处理状态*/
	private String fdSuggestion = "";		/* 处理意见*/
	private String fdHandleDate = "";		/* 处理日期*/
	private String fdHandlePeopleId = "";		/* 处理人ID*/
	private String fdHandlePeople = "";		/* 处理人*/
	private String fdCreateTime = "";		/* 创建时间*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRecordId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产问题记录ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsPenalty");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("是否罚款");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPenaltyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("罚款单ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPenalty");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("罚款金额");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("处理状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSuggestion");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("处理意见");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHandleDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("处理日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHandlePeopleId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("处理人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHandlePeople");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("处理人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCCProduceproblemHandle() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdRecordId - 生产问题记录ID
	 * @return the fdRecordId
	 */
	public String getFdRecordId() {
		return this.fdRecordId;
	}
	
	/**
	 * set the fdRecordId - 生产问题记录ID
	 */
	public void setFdRecordId(String fdRecordId) {
		this.fdRecordId = fdRecordId;
	}
	/**
	 * get the fdIsPenalty - 是否罚款
	 * @return the fdIsPenalty
	 */
	public String getFdIsPenalty() {
		return this.fdIsPenalty;
	}
	
	/**
	 * set the fdIsPenalty - 是否罚款
	 */
	public void setFdIsPenalty(String fdIsPenalty) {
		this.fdIsPenalty = fdIsPenalty;
	}
	/**
	 * get the fdPenaltyId - 罚款单ID
	 * @return the fdPenaltyId
	 */
	public String getFdPenaltyId() {
		return this.fdPenaltyId;
	}
	
	/**
	 * set the fdPenaltyId - 罚款单ID
	 */
	public void setFdPenaltyId(String fdPenaltyId) {
		this.fdPenaltyId = fdPenaltyId;
	}
	/**
	 * get the fdPenalty - 罚款金额
	 * @return the fdPenalty
	 */
	public BigDecimal getFdPenalty() {
		return this.fdPenalty;
	}
	
	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(BigDecimal fdPenalty) {
		this.fdPenalty = fdPenalty;
	}
	/**
	 * get the fdStatus - 处理状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 处理状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdSuggestion - 处理意见
	 * @return the fdSuggestion
	 */
	public String getFdSuggestion() {
		return this.fdSuggestion;
	}
	
	/**
	 * set the fdSuggestion - 处理意见
	 */
	public void setFdSuggestion(String fdSuggestion) {
		this.fdSuggestion = fdSuggestion;
	}
	/**
	 * get the fdHandleDate - 处理日期
	 * @return the fdHandleDate
	 */
	public String getFdHandleDate() {
		return this.fdHandleDate;
	}
	
	/**
	 * set the fdHandleDate - 处理日期
	 */
	public void setFdHandleDate(String fdHandleDate) {
		this.fdHandleDate = fdHandleDate;
	}
	/**
	 * get the fdHandlePeopleId - 处理人ID
	 * @return the fdHandlePeopleId
	 */
	public String getFdHandlePeopleId() {
		return this.fdHandlePeopleId;
	}
	
	/**
	 * set the fdHandlePeopleId - 处理人ID
	 */
	public void setFdHandlePeopleId(String fdHandlePeopleId) {
		this.fdHandlePeopleId = fdHandlePeopleId;
	}
	/**
	 * get the fdHandlePeople - 处理人
	 * @return the fdHandlePeople
	 */
	public String getFdHandlePeople() {
		return this.fdHandlePeople;
	}
	
	/**
	 * set the fdHandlePeople - 处理人
	 */
	public void setFdHandlePeople(String fdHandlePeople) {
		this.fdHandlePeople = fdHandlePeople;
	}
	/**
	 * get the fdCreateTime - 创建时间
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}
	
	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordId")), fdRecordId));
		setFdIsPenalty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPenalty")), fdIsPenalty));
		setFdPenaltyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPenaltyId")), fdPenaltyId));
		setFdPenalty(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSuggestion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSuggestion")), fdSuggestion));
		setFdHandleDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandleDate")), fdHandleDate));
		setFdHandlePeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandlePeopleId")), fdHandlePeopleId));
		setFdHandlePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandlePeople")), fdHandlePeople));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdRecordId",StringUtils.toString(fdRecordId, eiMetadata.getMeta("fdRecordId")));	
			map.put("fdIsPenalty",StringUtils.toString(fdIsPenalty, eiMetadata.getMeta("fdIsPenalty")));	
			map.put("fdPenaltyId",StringUtils.toString(fdPenaltyId, eiMetadata.getMeta("fdPenaltyId")));	
			map.put("fdPenalty",StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdSuggestion",StringUtils.toString(fdSuggestion, eiMetadata.getMeta("fdSuggestion")));	
			map.put("fdHandleDate",StringUtils.toString(fdHandleDate, eiMetadata.getMeta("fdHandleDate")));	
			map.put("fdHandlePeopleId",StringUtils.toString(fdHandlePeopleId, eiMetadata.getMeta("fdHandlePeopleId")));	
			map.put("fdHandlePeople",StringUtils.toString(fdHandlePeople, eiMetadata.getMeta("fdHandlePeople")));	
			map.put("fdCreateTime",StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));	
			
		return map;
	
	}
}